package com.hongning.railway.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

public class ResAnswerSubmitBean implements Parcelable {

    /**
     * answerConsuming : 22分22秒
     * answerTime : 60
     * creationTime : 1566226706804
     * examId : 1020
     * examName : 人工
     * examTime : 1566226540000
     * examType : 1
     * id : 9
     * result : 0
     * score : 0
     * staffId : admin
     * totalPoints : 7
     * totalTopicNum : 3
     */

    private String answerConsuming;
    private int answerTime;
    private long creationTime;
    private int examId;
    private String examName;
    private long examTime;
    private String examType;
    private int id;
    private int result;
    private int score;
    private String staffId;
    private int totalPoints;
    private int totalTopicNum;

    public String getAnswerConsuming() {
        return answerConsuming;
    }

    public void setAnswerConsuming(String answerConsuming) {
        this.answerConsuming = answerConsuming;
    }

    public int getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(int answerTime) {
        this.answerTime = answerTime;
    }

    public long getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(long creationTime) {
        this.creationTime = creationTime;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public long getExamTime() {
        return examTime;
    }

    public void setExamTime(long examTime) {
        this.examTime = examTime;
    }

    public String getExamType() {
        return examType;
    }

    public void setExamType(String examType) {
        this.examType = examType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public int getTotalPoints() {
        return totalPoints;
    }

    public void setTotalPoints(int totalPoints) {
        this.totalPoints = totalPoints;
    }

    public int getTotalTopicNum() {
        return totalTopicNum;
    }

    public void setTotalTopicNum(int totalTopicNum) {
        this.totalTopicNum = totalTopicNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.answerConsuming);
        dest.writeInt(this.answerTime);
        dest.writeLong(this.creationTime);
        dest.writeInt(this.examId);
        dest.writeString(this.examName);
        dest.writeLong(this.examTime);
        dest.writeString(this.examType);
        dest.writeInt(this.id);
        dest.writeInt(this.result);
        dest.writeInt(this.score);
        dest.writeString(this.staffId);
        dest.writeInt(this.totalPoints);
        dest.writeInt(this.totalTopicNum);
    }

    public ResAnswerSubmitBean() {
    }

    protected ResAnswerSubmitBean(Parcel in) {
        this.answerConsuming = in.readString();
        this.answerTime = in.readInt();
        this.creationTime = in.readLong();
        this.examId = in.readInt();
        this.examName = in.readString();
        this.examTime = in.readLong();
        this.examType = in.readString();
        this.id = in.readInt();
        this.result = in.readInt();
        this.score = in.readInt();
        this.staffId = in.readString();
        this.totalPoints = in.readInt();
        this.totalTopicNum = in.readInt();
    }

    public static final Parcelable.Creator<ResAnswerSubmitBean> CREATOR = new Parcelable.Creator<ResAnswerSubmitBean>() {
        @Override
        public ResAnswerSubmitBean createFromParcel(Parcel source) {
            return new ResAnswerSubmitBean(source);
        }

        @Override
        public ResAnswerSubmitBean[] newArray(int size) {
            return new ResAnswerSubmitBean[size];
        }
    };
}
